package moxl.parser.assemblers.closeelement;

import moxl.parser.assemblers.AssemblerStateException;

public class CloseElementAssemblerStateException extends AssemblerStateException
{
	private final CloseElementAssemblerContext ctx;

	public CloseElementAssemblerStateException(CloseElementAssemblerContext ctx)
	{
		super(ctx.getLocation());
		this.ctx = ctx;
	}

	@Override
	public String getMessage()
	{
		return createMessage(ctx.getState().toString(), ctx.getToken());
	}

}
